removeKeyframes

abstract fun removeKeyframes(block: DesignBlock, property: String)

Remove the keyframe track of a block property, so the static value applies again. Does nothing for an animatable property without keyframes. Throws BLOCK.KEYFRAMES_PROPERTY_NOT_ANIMATABLE when the property has no keyframes and isPropertyAnimatable returns false. Required scope: the scopes that setKeyframes needs for the removed track.

Parameters

block

the block that owns the property.

property

the animatable property path.